package com.serverTechnology;

import com.feign.serverLineFeign.LineFeign;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

@SpringBootApplication(scanBasePackages = {"cn.stylefeng","com.serverTechnology"}, exclude = {FlywayAutoConfiguration.class})
@MapperScan(basePackages = {"cn.stylefeng.**.mapper","com.serverTechnology.**.mapper"})
@EnableFeignClients(basePackages = {"com.feign.serverLineFeign"})
@EnableAsync
@EnableScheduling // task调度
@EnableSwagger2WebMvc
public class ServerTechnologyApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerTechnologyApplication.class, args);
    }
}
